package com.lcxw.hxzbadmin.feignserver.carousel;

import com.lcxw.hxzbadmin.entity.configbean.YwpdCarousel;
import com.lcxw.hxzbadmin.service.configservice.CarouselService;
import com.lcxw.hxzbapi.entity.response.Response;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign/carousel")
public class CarouselServer {

    @Resource
    CarouselService carouselService;

    @PostMapping("/getAll")
    public Response getAllCarousel(){
        List<YwpdCarousel> data = carouselService.selectAll();
        return Response.ok(data);
    }

}